<?php
class AdminModel extends Model {
	protected $_auto = array ( 
		array('createtime','getFormatTime',1,'function'), 
		array('password','md5',3,'function'),
		array('status','0',1),
	);
		
	protected $_validate         =         array(
		array('username','require','用户名必须填写'),
		array('username','','账户名已存在',1,'unique'),
		array('email','email','邮箱格式不正确'),
		array('password','/.+/','密码必须填写',Model::EXISTS_VAILIDATE,'regex',1),
		array('password','confirm_password','两次密码输入不以致',0,'confirm'),
	);
	
}